package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    List<Permission> findAllPermission();

    void addRole(Integer[] permissionIds, Role role);

    Role findOneRole(Integer roleId);

    List<Integer> findAllPermissionByRoleId(Integer roleId);

    void editRole(Integer[] permissionsIds, Role role);

    void deleteRoleById(Integer roleId);

}
